package com.dhcc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.entity.SysUserRoleInstitutionRoleFinance;
import com.dhcc.mapper.SysUserRoleInstitutionRoleFinanceMapper;
import com.dhcc.service.SysUserRoleInstitutionRoleFinanceService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserRoleInstitutionRoleFinanceServiceImpl extends ServiceImpl<SysUserRoleInstitutionRoleFinanceMapper, SysUserRoleInstitutionRoleFinance>implements SysUserRoleInstitutionRoleFinanceService {
    @Resource
    private SysUserRoleInstitutionRoleFinanceMapper sysUserRoleInstitutionRoleFinanceMapper;
    @Override
    public List<String> getResourceIdList(String institutionRoleId, String positionId, String financeId) {
        List<String> resourceIdList=  sysUserRoleInstitutionRoleFinanceMapper.getResourceIdList(institutionRoleId,positionId,financeId);
        return resourceIdList;
    }

    @Override
    public List<String> getproductId(String institutionId, String institutionRoleId, String departmentId, String positionId) {
        List<String> productIds=sysUserRoleInstitutionRoleFinanceMapper.getproductId(institutionId,institutionRoleId,departmentId,positionId);
        return productIds;
    }
}
